<?php

/**
 *  Класс Virgo
 *  Рендерит виджеты
 * 
 * @author Kosty Ryabichenko <k.ryabichenko@gmail.com>
 * @version 1.0
 */
class Virgo {

    public static function renderWidget($widget, $params) {
        
        return Yii::app()->controller->renderPartial('application.extensions.virgo.'.$widget.'.'.$widget, array(
            'widget' => $widget,
            'params' => $params,
        ));
    }

    public static function renderWidgetBlock($widget, $partial, $params) {
        return Yii::app()->controller->renderPartial('application.extensions.virgo.'.$widget.'.'.$partial, $params);
    }

}

